package com.ruoyi.classai.domain.dto.chapterresource;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 老师资源库新增对象
 *
 * @author lcj
 * @date 2025-03-26
 */
@Data
@Schema(description = "老师资源库新增对象")
public class EwcChapterResourceAddDto {

    @Schema(description = "资源ID")
    private String id;

    /**
     * 资源名称
     */
    @Schema(description = "资源名称")
    private String resourceName;

    /**
     * 课程id
     */
    @NotBlank(message = "课程id不能为空")
    @Schema(description = "课程id", required = true)
    private String courseId;

    /**
     * 章节ID
     */
    @NotBlank(message = "章节ID不能为空")
    @Schema(description = "章节ID", required = true)
    private String chapterId;

    /**
     * 模块的代码
     */
    @NotBlank(message = "模块代码不能为空")
    @Schema(description = "模块代码", required = true)
    private String moduleCode;

    /**
     * 资源地址
     */
    @NotBlank(message = "资源地址不能为空")
    @Schema(description = "资源地址", required = true)
    private String resourceUrl;

    /**
     * 学科类型
     */
    @Schema(description = "学科类型")
    private Integer subjectType;
}